package summative;

import java.util.ArrayList;

public class VectorFocusList 
{
	ArrayList<Vector> focus;
	Properties properties;

	public VectorFocusList()
	{
		focus = new ArrayList <Vector> ();
	}
	
	public void setPropPanel(Properties properties)
	{
		this.properties = properties;
	}
	
	public ArrayList <Vector> getArray()
	{
		return focus;
	}

	public Vector getVector(int number)
	{
		return focus.get(number);
	}

	public void addVector(Vector temp)
	{
		focus.add(temp);
		this.update();
	}

	public void removeVector(Vector temp)
	{
		focus.remove(temp);
		this.update();
	}

	public void resetList()
	{
		focus.clear();
	}
	public void update()
	{
		properties.updateView();
	}
}
